using System.Data;
using NCS.Module.FeedBack.Library.Providers;

namespace NCS.Module.FeedBack.Library.Components
{
	public class FeedBackController
	{
		public static DataTable GetFeedBacks(int status)
		{
			return DataProvider.Instance().GetFeedBacks(status);
		}
		public static FeedBackInfo GetFeedBack(int fbId)
		{
			return DataProvider.Instance().GetFeedBack(fbId);
		}
		public static int AddFeedBack(FeedBackInfo fb)
		{
			return DataProvider.Instance().AddFeedBack(fb);
		}
		public static void UpdateFeedBack(FeedBackInfo fb)
		{
			DataProvider.Instance().UpdateFeedBack(fb);
		}
		public static void DeleteFeedBack(FeedBackInfo fb)
		{
			DataProvider.Instance().DeleteFeedBack( fb);
		}
		public static void DeleteFeedBack(int fbId)
		{
			DataProvider.Instance().DeleteFeedBack(fbId);
		}
		public static void SetStatus(int fbId, int status)
		{
			DataProvider.Instance().SetStatus(fbId, status);
		}
	}
}
